import request from "@/utils/request";

export async function getList(params) {
  return request(`/loan/query`, {
    method: "POST",
    body: {
      ...params
    }
  });
}

export async function detail(params) {
  return request(`/loan/detail/${params.code}`, {
    method: "POST",
    body: {}
  });
}
export async function confirm(params) {
  return request(`/loan/confirm/${params.code}`, {
    method: "POST",
    body: {}
  });
}
